from hanziconv import HanziConv

# 创建转换器实例
converter = HanziConv()

# 简体转繁体示例
simplified = "人工智能"
traditional = converter.toSimplified(simplified)
print(traditional)  # 输出：人工智慧

# 繁体转简体示例
traditional = "軟件"
simplified = converter.toSimplified(traditional)
print(simplified)  # 输出：软件
